package com.company.cloud.goodsrestservice.model;

import javax.persistence.*;

@Table(name = "goods_category")
public class Category {
    @Id
    @Column(name = "category_id")
    private Integer categoryId;

    /**
     * 父ID
     */
    @Column(name = "parent_id")
    private Integer parentId;

    @Column(name = "category_name")
    private String categoryName;

    /**
     * 0=禁用 1=启用 2=待审核
     */
    private Integer status;

    @Column(name = "category_mark")
    private String categoryMark;

    @Column(name = "create_time")
    private Long createTime;

    /**
     * @return category_id
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * @param categoryId
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 获取父ID
     *
     * @return parent_id - 父ID
     */
    public Integer getParentId() {
        return parentId;
    }

    /**
     * 设置父ID
     *
     * @param parentId 父ID
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * @return category_name
     */
    public String getCategoryName() {
        return categoryName;
    }

    /**
     * @param categoryName
     */
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    /**
     * 获取0=禁用 1=启用 2=待审核
     *
     * @return status - 0=禁用 1=启用 2=待审核
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置0=禁用 1=启用 2=待审核
     *
     * @param status 0=禁用 1=启用 2=待审核
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return category_mark
     */
    public String getCategoryMark() {
        return categoryMark;
    }

    /**
     * @param categoryMark
     */
    public void setCategoryMark(String categoryMark) {
        this.categoryMark = categoryMark;
    }

    /**
     * @return create_time
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
}